import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

import shouye from "./shouye";
import idx from "./idx";
import index from "./index";
import NotFound from "../zp/NotFound";

// import NotFound from "../pages/NotFound"

// 路由配置：路径和组件的对应关系
let routes = [   
    ...shouye,...idx,...index,
    {
        path:"*",
        component:NotFound
    }
    // {
    //     path:"*",
    //     component:NotFound
    // }
];

// 创建Vue-router对象
let router =  new VueRouter({
    mode:"history",
    // mode:"hash",
    routes
})
export default router;